package Models;

public class StandardBoardModel2D implements BoardModel2D{

	private ChessPieceModel[][] board = new ChessPieceModel[8][8];
	
	@Override
	public ChessPieceModel[][] getBoard() {
		
		return board;
	}

	@Override
	public ChessPieceModel getPiece(Point2D position) {
		
		return board[position.getX()][position.getY()];
	}

	@Override
	public void setPiece(Point2D position, ChessPieceModel chessPiece) {
		board[position.getX()][position.getY()] = chessPiece;
		
	}

}
